package com.ruiysoft.controller.sys.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.validation.annotation.Validated;

import java.math.BigDecimal;
import java.util.Objects;

/**
 * ShopDistributionDto
 */
@Validated
@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2018-10-28T15:44:49.584+08:00")

public class ShopDistributionDto   {
  @JsonProperty("firstRatio")
  private BigDecimal firstRatio = null;

  @JsonProperty("secondRatio")
  private BigDecimal secondRatio = null;

  @JsonProperty("minimumAmount")
  private BigDecimal minimumAmount = null;

  public ShopDistributionDto firstRatio(BigDecimal firstRatio) {
    this.firstRatio = firstRatio;
    return this;
  }

  /**
   * Get firstRatio
   * @return firstRatio
  **/
  @ApiModelProperty(example = "10", value = "")


  public BigDecimal getFirstRatio() {
    return firstRatio;
  }

  public void setFirstRatio(BigDecimal firstRatio) {
    this.firstRatio = firstRatio;
  }

  public ShopDistributionDto secondRatio(BigDecimal secondRatio) {
    this.secondRatio = secondRatio;
    return this;
  }

  /**
   * Get secondRatio
   * @return secondRatio
  **/
  @ApiModelProperty(example = "15", value = "")


  public BigDecimal getSecondRatio() {
    return secondRatio;
  }

  public void setSecondRatio(BigDecimal secondRatio) {
    this.secondRatio = secondRatio;
  }

  public ShopDistributionDto minimumAmount(BigDecimal minimumAmount) {
    this.minimumAmount = minimumAmount;
    return this;
  }

  /**
   * Get minimumAmount
   * @return minimumAmount
  **/
  @ApiModelProperty(example = "100", value = "")


  public BigDecimal getMinimumAmount() {
    return minimumAmount;
  }

  public void setMinimumAmount(BigDecimal minimumAmount) {
    this.minimumAmount = minimumAmount;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ShopDistributionDto shopDistributionDto = (ShopDistributionDto) o;
    return Objects.equals(this.firstRatio, shopDistributionDto.firstRatio) &&
        Objects.equals(this.secondRatio, shopDistributionDto.secondRatio) &&
        Objects.equals(this.minimumAmount, shopDistributionDto.minimumAmount);
  }

  @Override
  public int hashCode() {
    return Objects.hash(firstRatio, secondRatio, minimumAmount);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ShopDistributionDto {\n");
    
    sb.append("    firstRatio: ").append(toIndentedString(firstRatio)).append("\n");
    sb.append("    secondRatio: ").append(toIndentedString(secondRatio)).append("\n");
    sb.append("    minimumAmount: ").append(toIndentedString(minimumAmount)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
}

